<?php
use Zend\Form\View\Helper\FormLabel;
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url(NULL, array(
    'controller' => 'Login',
    'action' => 'process'
)));
$form->setAttribute('method', 'post');
?>

<div class="row">
	<div class="col-lg-12">
		<br>
		<br>
		<br>
	</div>
</div>
<div class="row">
	<div class="col-lg-4"></div>
	<div class="col-lg-4">
		<div class="panel border">
			<div class="panel-heading ">
				<h3>Login</h3>
			</div>
			<div class="panel-body errormsg ">

				<?php 	echo $this->form()->openTag($form);  ?>
				<table>
					<tr>
						<td><?php echo $this->FormLabel($form->get('username'));  ?></td>
						<td><?php echo $this->Formelement($form->get('username'));  ?></td>
					</tr>
					<tr>
						<td><?php echo $this->FormLabel($form->get('password'));  ?></td>
						<td><?php echo $this->Formelement($form->get('password'));  ?></td>
					</tr>
				<!--<tr> 
						<td><?php //echo $this->FormLabel($form->get('rememberme'));   ?></td>
						<td><?php //echo $this->Formelement($form->get('rememberme')); ?></td>
					</tr>  -->
					<tr>
					    <td>&nbsp;</td>
						<td><?php echo $this->Formelement($form->get('submit'));   ?></td>
					</tr>
					<tr>
						<td colspan="2"><?php if ($this->error == 1): ?>
                                <div class="error">Your credentials are
								incorrect.</div>
                            <?php endif ?>
                         </td>
					</tr>
				</table>
               	<?php echo $this->form()->closeTag($form); ?>
			</div>
		</div>
	</div>
	<div class="col-lg-4"></div>
</div>

